<template>
  <div class="local">
    <div class="group">
      <div class="top">
        <span @click="fun()" class="cilc"></span>
        <span class="title">消息</span>
      </div>
      <ul class="local-nav">
        <li v-for="(v, i) in arr" :key="i">
          <img :src="v.MsgServiceIcon" alt="" />
          <span>{{ v.MsgServiceTitle }}</span>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
import getlink from "@/api/getapi.js";
export default {
  data() {
    return {
      arr: [],
    };
  },
  methods: {
    fun() {
      this.$router.push("/homepage");
    },
  },
  created() {
    getlink("/data/list/lit").then((ok) => {
      this.arr = ok.data;
      //   console.log(ok.data);
    });
  },
};
</script>

<style scoped>
.local {
  background-color: #fff;
  padding-bottom: 0.12rem;
  height: 1.3rem;
}
.group {
  width: 100%;
  height: 0.9rem;
  padding: 0 0.12rem;
  background-color: #00a7fa;
  border-radius: 0 0 0.2rem 0.2rem;
}
.top {
  width: 100%;
  height: 0.44rem;
  position: relative;
  line-height: 0.44rem;
  text-align: center;
}
.top .cilc {
  position: absolute;
  width: .3rem;
  height: .3rem;
  display: inline-block;
  top: .09rem;
  left: 0;
}
.top span::after {
  position: absolute;
  top: 50%;
  left: 0.1rem;
  margin: -0.07rem 0 0 -0.06rem;
  content: "";
  width: 0.12rem;
  height: 0.12rem;
  border-left: 1px solid #fff;
  border-top: 1px solid #fff;
  transform: rotate(-45deg);
}
.top .title {
  color: #fff;
  font-size: 0.17rem;
}
.local-nav {
  display: flex;
  height: 0.78rem;
  align-items: center;
  border-radius: 0.05rem;
  display: flex;
  background-color: #fff;
  box-shadow: 0.02rem 0.02rem 2rem gray;
}
.local-nav li {
  height: 0.78rem;
  width: 25%;
  padding: 0.11rem 0.11rem 0.06rem;
  font-size: 0.12rem;
  color: #666;
  text-align: center;
}
.local-nav li img {
  width: 0.38rem;
  height: 0.38rem;
}
</style>